import Vue from 'Vue';
import Vuex from 'vuex';
import Router from 'vue-router';

import App from './App';
import modules from './store';
import routes from './router';

Vue.use(Vuex);
Vue.use(Router);


// vuex 配置
const store = new Vuex.Store({
  modules
})

// router 配置
const router = new Router({
  routes
});

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
